<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
<head>
	<title>系统</title>
	<link type="text/css" rel="stylesheet" href="../<s:property value="#session.themeStyle.mainCss" default="Skin/PM/LightBlue/main.css"/>" />
	<style type="text/css">
		html,body{
			height:100%;
			margin: 0px;
			font-size: 12px;
		}
	</style>
</head>
<body style="margin: 0px;height:100%;" >
	<table id="left_scroll" style="width: 10px;height:100%;border-width: 0px; border-collapse: collapse;">
		<tr>
        	<td><img src="../${themeStyle.path }/images/scroll_left.png" width="9" height="50" id="leftIcon" style="cursor:pointer;" onClick="changeState()" /></td>
  		</tr>
	</table>
	<script type="text/javascript" src="../js/jquery.js"></script>
	<script type="text/javascript">
		var left_width = null;
		
		function changeState() {
			var cols = parent.insetFra.cols.split(",");
			if(left_width==null){
				left_width = cols[0];
			}
			if(cols[0]=="0"){
				parent.insetFra.cols = left_width + "," + cols[1] + ",*";
				leftIcon.src = "../${themeStyle.path }/images/scroll_left.png";
			}else{
				parent.insetFra.cols = "0," + cols[1] + ",*";
				leftIcon.src = "../${themeStyle.path }/images/scroll_right.png";
			}
		}
		$(document).ready(function(){
			$("#tableMain").height(document.body.offsetHeight);
		});
	</script>
</body>
</html>
